<?php

use yii\helpers\Html;
use yii\helpers\Url;

$search_type = Yii::$app->request->get('search_type');
?>

<div class="row">
    <div class="col-lg-6 col-md-12 pull-right">
        <?= Html::beginForm(Url::to(['']), 'get', ['class' => 'search']); ?>
        <div class="form-group">
            <div class="input-group">
                <?= Html::textInput('wd', NULL, ['class' => 'form-control', 'placeholder' => '输入关键词进行搜索']); ?>
                <span class="input-group-btn">
                    <?= Html::dropDownList('search_type', $search_type, [
                        1 => '按发布者', 2 => '按手机', 3 => '按标题'
                    ], ['class' => 'form-control']); ?>
                 </span>
            </div>
        </div>
        <?= Html::endForm(); ?>
    </div>
</div>